The phrase "to clean up the mess" means to take responsibility for fixing or resolving a problem, especially one that has become difficult or complicated. It implies taking action to correct an error, undo damage, or put things back in order after something went wrong. The expression can also imply making amends or apologizing for mistakes made and doing everything possible to make things right again.